<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>左侧权限</title>
<style type="text/css">
a{ text-decoration:none}

*{margin:0;padding:0;}
body{ background:#f9eef2}
#nav{margin:0px; border:solid 1px #f2c9da}
#nav h3{cursor:pointer;line-height:30px;height:30px; background: url(<%=basePath%>image/frame/menu.png) repeat-x bottom;color:#000; text-align:center; margin: 0; font-size:14px }
#nav a{display:block;line-height:24px;}
#nav a:hover{background-color:#eee;color:#000;}
#nav div{display:none; font-size:12px }
#nav div a{text-align:center; color:#000; line-height:39px; background:url(<%=basePath%>image/frame/menuer.png) no-repeat}
#nav div a:hover{ color:#990000}
</style>
<script type="text/javascript">
function $(id){return document.getElementById(id)}
window.onload = function(){
	$("nav").onclick = function(e){
		var src = e?e.target:event.srcElement;
		if(src.tagName == "H3"){
			var next = src.nextElementSibling || src.nextSibling;
			next.style.display = (next.style.display =="block")?"none":"block";
		}
	}
}
</script>
<body>
<div id="nav">
 <c:forEach items="${list }" var="m" varStatus="i">
 	<c:if test="${m.isOpen == 1 && m.parentsNodeId==0}">
 	<h3>${m.nodeName}</h3>
 	<div>
 		<c:forEach var="c" items="${list }">
 		 <c:if test="${c.isOpen==1 && c.parentsNodeId==m.nodeCode}">
		    <a href="${basePath}${c.url }&porCode=${c.nodeCode}" target="right">${c.nodeName }</a>
		</c:if>
 		</c:forEach>
 		</div>
 	</c:if>
 </c:forEach>
     <div>
	
</div>
	<%-- <div id="all">
		<div id="menu">
			<ul>
				<c:forEach items="${list }" var="m" varStatus="i">
					<c:if test="${m.isOpen == 1 && m.parentsNodeId==0}">
						<li><span onclick="show('ul_${i.index+1}')">${m.nodeName }</span>
							<ul id="ul_${i.index+1 }" style="display: none">
								<c:forEach var="c" items="${list }">
									<c:if test="${c.isOpen==1 && c.parentsNodeId==m.nodeCode}">
										<li><a target="right"
											href="<%=basePath %>${c.url }&porCode=${c.nodeCode}&title=${c.nodeName}"><img src="<%=basePath%>image/fram/li.jpg" />${c.nodeName }
										</a></li>
									</c:if>
								</c:forEach>
							</ul></li>
						<br>


					</c:if>
				</c:forEach>
			</ul>
		</div>
	</div> --%>
</body>
</html>
